package com.sporadic.backstage.service.serviceImpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sporadic.backstage.entity.DiningTable;
import com.sporadic.backstage.mapper.DiningTableMapper;
import com.sporadic.backstage.service.DiningTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DiningTableServiceImpl implements DiningTableService {


    @Autowired
    private DiningTableMapper diningTableMapper;


    @Override
    public IPage<DiningTable> findDiningTableByPage(Page page, Map map) {
        return diningTableMapper.findDiningTableByPage(page,map);
    }

    @Override
    public int delDiningTableById(Integer diningTableId,Integer diningTableAreaId) {
        return diningTableMapper.delDiningTableById(diningTableId,diningTableAreaId);
    }

    @Override
    public int modifyDiningTable(DiningTable diningTable) {
        return diningTableMapper.modifyDiningTable(diningTable);
    }

    @Override
    public int batchInsertDiningTable(List<DiningTable> diningTables) {
        return diningTableMapper.batchInsertDiningTable(diningTables);
    }


}
